package com.carhailing.common.domain.coupons;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Author: Gd
 * @package: com.carhailing.common.domain.vo
 * @Project: Online_Taxi_Project
 * @Name: CouponScheduleVo
 * @Date: 2024-7-25 21:43
 */
@Data
public class CouponScheduleVo {

    /**
     * 优惠卷场次id
     */
    private Long couponScheduleId;

    /**
     * 优惠卷场次开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date couponScheduleStartTime ;
    /**
     * 优惠卷场次结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date couponScheduleEndTime;
    /**
     * 启用状态
     */
    private Integer couponScheduleStatus;
    /**
     * 优惠卷场次名称
     */
    private String couponScheduleName;
    /**
     * 优惠券场次关联的优惠券信息
     */
    @JsonProperty("coupons_relation")
    @TableField(exist = false)
    private List<CouponsScheduleAndCouponsRelationVo> couponsRelation;
}
